<?php

    $known_languages = Array ("tr","en");

    if ($_SESSION["AL"]=="") $_SESSION["AL"]=$CF['Project']['Language'];

    if (isset($_GET["l"])){
        if (false!==array_search($_GET["l"],$known_languages))
            $_SESSION["AL"]=$_GET["l"]; 
        @header ("location: ");
    }

    function _ul($List) {
            $Return='<ul>';
            foreach ($List as $Item)
                $Return.='<li>'.$Item.'</li>';
            return $Return.'</ul>';
    }

?>
